package com.gonsin.venus.sdk.exceptions;

/**
 * 调用接口产生异常
 */
public class ApiException extends Exception{

    private int errorCode;

    private String message;

    public ApiException(int errorCode, String message) {
        this.errorCode = errorCode;
        this.message = message;
    }

    @Override
    public String toString() {
        return "ApiException{" +
                "errorCode=" + errorCode +
                ", message='" + message + '\'' +
                "}\n" + super.toString();
    }
}
